package com.ljk.domain;

import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 示例程序,没有任何意义
 * @author ljk
 * @since 2025/3/27 20:48
 */
@Data
@NoArgsConstructor
@JsonRootName("JsonRootName")
//@JacksonXmlRootElement()
public class Demo {

    private Integer id;
    @JacksonXmlProperty(localName = "name")
    private String name;

    public Demo(Integer id, String name) {
        this.id = id;
        this.name = name;
    }
}
